﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Enter.Mvc.Base;
using System.Web.Mvc;
using Enter.Mvc.Statistics.Route;

namespace Enter.Mvc.Statistics
{
	public class MvcApplication : BaseApplication
	{
		public override void RegisterRoutes(System.Web.Routing.RouteCollection routes)
		{
			base.RegisterRoutes(routes);

			routes.Add(new ImgRoute("img"));

			routes.MapRoute(
		  "HomeUser",
		  "home/user/",
		  new { controller = "Home", action = "User" }
		  );

			routes.MapRoute(
			"Default", // Route name
			"{controller}/{action}/{id}", // URL with parameters
			new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
		);
		}


		protected override void registerActionFilters(Base.Infrastructure.ActionFilters.IActionFilterRegistry registry)
		{
			base.registerActionFilters(registry);
		}
	}
}
